package com.codebo.homiematchbackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematchbackend.model.dto.chat.ChatRequest;
import com.codebo.homiematchbackend.model.entity.Chat;
import com.codebo.homiematchbackend.model.vo.ChatRecordVO;
import com.codebo.homiematchbackend.model.vo.ChatVO;

import java.util.List;

/**
 * @author 25912
 * @description 针对表【chat(聊天消息)】的数据库操作Service
 * @createDate 2025-09-27 16:50:12
 */
public interface ChatService extends IService<Chat>
{

    boolean sendMessage(ChatRequest chatRequest);

    List<ChatRecordVO> getChatRecord(Long userId);

    //-------------------------------------------------
    List<ChatRecordVO> getChatRecordVO(List<Chat> chatList,Long userId);

    ChatVO getChatVO(Chat chat);
}
